﻿using CommunityToolkit.Mvvm.ComponentModel;
using System.Collections.ObjectModel;

namespace WpfMvvmTemplate.WPFUI.Models.Pages
{
    public partial class DashboardModel : ObservableObject
    {
        [ObservableProperty]
        private int counter = 0;

        [ObservableProperty]
        private string name = string.Empty;

        [ObservableProperty]
        private ObservableCollection<string> testColl;

        [ObservableProperty]
        private string testSel;

        public DashboardModel()
        {
            Name = "测试";
            TestColl = new() { "奥谱天成", "产品系列", "光纤光谱仪", "地物光谱仪" };
            TestSel = TestColl.First();
        }

    }
}
